import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
    String s1=new String("abc");
    String s2="abc";
    System.out.println(s1==s2);
    boolean flag=s1.equals(s2);
    System.out.println(flag);
    String s3="Abc";
    String s4=new String("abc");
    System.out.println(s3.equals(s4));
    Scanner sc=new Scanner(System.in);
    String str=sc.next();
    String str2="abc";
    System.out.println(str==str2);



    }
}
